package org.darkforest.dao.redis.impl;

import org.darkforest.dao.redis.AdvRedisDao;
import org.darkforest.dao.redis.templete.AbstractListRedisOper;
import org.darkforest.model.Adv;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by Administrator on 2015/11/12.
 */
@Component
public class AdvRedisDaoImpl extends AbstractListRedisOper<Adv> implements AdvRedisDao{
    @Override
    public void addAdvList(String key, List<Adv> advList) {
        this.addList(key, advList);
    }

    @Override
    public List<Adv> getAdvListByKey(String key) {
        return this.getList(key);
    }

    @Override
    public void deleteByKey(String key) {
        this.deleteListByKey(key);
    }
}
